package ace.module.upms.core.impl.manager;

import ace.cmp.data.spring.data.jdbc.querydsl.rsql.core.manager.DtoManager;
import ace.cmp.util.model.dto.TreeNode;
import ace.module.upms.api.model.dto.UpmsMenuDto;
import ace.module.upms.core.impl.dao.entity.UpmsMenu;
import java.util.List;

/**
* 菜单权限 spring data jdbc querydsl rsql manager.
*
* @author Caspar
*/
public interface UpmsMenuManager extends DtoManager<UpmsMenu, Long, UpmsMenuDto> {

  List<UpmsMenu> getByUpmsAppIdAndDeleteFlagIsFalse(Long upmsAppId);

  List<TreeNode<UpmsMenu>> getTreeByUpmsAppIdAndDeleteFlagIsFalse(Long upmsAppId);
}
